export default {
  BASE_URL: process.env.VUE_APP_API_BASE_URL,
  url: {
    menu: {
      query: '/sysPermission/findTrees'
    },
    // 部门
    dept: {
      query: '/sysDept/query',
      add: '',
      update: '',
      delete: '',
      detaile: ''
    },
    // 角色
    role: {
      // query: '/sysRole/query',
      query: '/sysRole/queryPermissionIdS',
      add: '/sysRole/insert',
      update: '/sysRole/up',
      delete: '/sysRole/delete',
      perms: {
        get: '',
        set: '/sysRolePermission/insert'
      }
    },
    // 系统用户
    user: {
      query: '/sysUser/query',
      add: '/sysUser/insert',
      update: '/sysUser/up',
      delete: '/sysUser/delete',
      forbidden: '/sysUser/delete', // 禁用用户
      roles: {
        get: '',
        set: '/sysUserRole/insert'
      }
    },
    // 部门人员
    bmry: {
      query: '/sysUser/queryUserList'
    },
    // 人员
    person: {
      // 根据部门id查人员 /{deptId}
      query: '/sysUser/queryUserBySysDeptId/',
      add: '',
      update: '',
      delete: '',
      detaile: ''
    },
    baseData: {
      query: 'sysLogin/getDictList'
    },
    // 单文件、视屏上传通用
    uploadFile: '/live/uploadVideo',
    // 根据部门id查询部门的级联id数组
    getdeptIds: '/sysDept/querySysDeptByChildrenLong',
    // 短信
    SendSms: {
      page: '/infoSmsDelivery/query',
      send: '/infoSmsDelivery/insert'
    },
    twoStepCode: {},
    // 课程管理
    course: {
      page: '/course/query',
      save: '/course/insert',
      del: '/course/delete',
      updateForType: '/course/updateForType',
      uploadVideo: '/course/uploadVideo',
      extCourse: '/course/exportTaskList'
    },
    // 考试管理
    exam: {
      itemBank: { // 题库管理
        page: '/exam/selectAllExamList',
        save: '/exam/insert',
        edit: '/exam/update',
        del: '/exam/delete',
        query: '/exam/query'
      },
      question: { // 题目管理
        page: '/question/queryQuestionList',
        save: '/question/insert',
        edit: '/question/update',
        getInfo: '/question/queryQuestionDetailData',
        del: '/question/delete',
        delImageById: '/question/delImageById'
      }
    }
  }
}
